package Text_003;

import java.util.Scanner;

public class Num {

	public static void main(String[] args) {
		//数字回文
		Scanner scanner = new Scanner(System.in);
		System.out.println("请输入一串数字：");
		int x  = scanner.nextInt();
		int x1 = x;
		 
		int sum = 0;
		while(x1>0) {
			int ge = x1%10;//个位
			x1 = x1/10;
			
			sum =sum*10+ge;
		}
		System.out.println(x);
		System.out.println();
		System.out.println(x==sum);

	}

}
